package com.ane.controller.rtline;

import com.ane.entity.CommonJsonVO;
import com.ane.entity.RtLineVO;
import com.ane.service.impl.TestServiceImpl;
import com.ane.util.JsonUtil;
import com.ane.util.ResponseHelper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

import static com.ane.util.JsonUtil.json2obj;

/**
 * @author 李志强
 * @version 0.1
 * @time 2017/3/13 17:40
 * @since 0.1
 */
@RestController
@RequestMapping(value = "/api/rtline")
public class RtlineController {
	@Resource
	private TestServiceImpl userService;
	@RequestMapping(value = "/rtLineTest",method= RequestMethod.POST)
	public String rtLineTest(RtLineVO rtLineVO) {
		//对象方式
		return userService.test(rtLineVO);
		//Map方式
		//return userService.test2(rtLineVO);
	}
	//组合接收
	//class Param{
	//	public CommonJsonVO cmmonJsonVO;
	//	public RtLineVO rLineVO;
	//}
}
